import { Injectable, Injector } from '@angular/core';
import { environment } from '../../../../../environments/environment';
import { HttpClient } from '@angular/common/http';

@Injectable({
    providedIn: 'root'
})
export class AssignUserService{
    base = '/system/role/authUser';
    constructor(private _injector: Injector,private _http: HttpClient) {
    }

    list(params:any){
        const options = {
            params
        }
        return this._http.get<any>(environment.baseUrl+this.base+'/allocatedList',options);
    }
    unallocatedList(params:any){
        const options = {
            params
        }
        return this._http.get<any>(environment.baseUrl+this.base+'/unallocatedList',options);
    }
    cancel(data:any){
        return this._http.put<any>(environment.baseUrl+this.base+'/cancel',data);
    }
    selectAll(data:any){
        return this._http.put<any>(environment.baseUrl+this.base+'/selectAll',data);
    }

}
